package com.onecar.carplatform.common.constants;

import lombok.Getter;

@Getter
public enum AlarmTypeEnum implements BaseEnum<String> {

    ALARM_0("紧急报警", 0, "0"),
    UNKNOWN("未知报警类型", -1, "-1");

    private String desc;
    private int value;
    private String code;

    AlarmTypeEnum(String desc, int value, String code) {
        this.desc = desc;
        this.value = value;
        this.code = code;
    }

    @Override
    public String getCode() {
        return code;
    }
}
